package com.bridgeintelligent.tag.customer.controller;

import com.bridgeintelligent.tag.customer.ess.EssResult;
import com.bridgeintelligent.tag.customer.ess.IEssApproveService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "员工自助系统接口")
@RestController
@RequestMapping("/api/ess")
@AllArgsConstructor
@Slf4j
public class EssApproveController {

    private IEssApproveService essApproveService;

    /**
     * 员工自助获取审批人列表
     *
     * @param yuaId
     * @return
     */
    @ApiOperation(value = "员工自助获取审批人列表", notes = "员工自助获取审批人列表")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "yuaId", value = "用户唯一标识")
    })
    @GetMapping("/userList")

    public EssResult userList(String yuaId) {
        return essApproveService.essUser(yuaId);
    }


}
